<html>
<meta charset="utf-8"/>
<#include "../common/header.ftl">
<body>
<div id="wrapper" class="toggled">
<#--边栏-->
        <#include "../common/nav.ftl">
<#--内容-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <form class="form-horizontal" role="form" method="post" action="/sell/seller/product/save">
                        <div class="form-group">
                            <label for="productName" class="col-sm-2 control-label">名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="productName" name="productName"  value="${(product.productName)!''}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="productPrice" class="col-sm-2 control-label">价格</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="productPrice" name="productPrice" value="${(product.productPrice)!''}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="productStock" class="col-sm-2 control-label">库存</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="productStock" name="productStock" value="${(product.productStock)!''}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="productDescription" class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="productDescription" name="productDescription"  value="${(product.productDescription)!''}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="productIcon" class="col-sm-2 control-label">图片</label>
                            <div class="col-sm-10">
                                <img src="${(product.productIcon)!''}" alt="" width="500" height="500">
                                <input type="text" class="form-control" id="productIcon" name="productIcon" value="${(product.productIcon)!''}" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="categoryType" class="col-sm-2 control-label">类目</label>
                            <div class="col-sm-10">
                                <select name="categoryType" class="form-control">
                                    <#list categoryList as item >
                                        <option value="${item.categoryId}" <#if (product.categoryType)??&&(item.categoryType==product.categoryType)>selected</#if>>${item.categoryName}</option>
                                    </#list>
                                </select>
                            </div>
                        </div>
                        <input type="hidden" name="productId" value="${(product.productId)!''}" />
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-default">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>